package cn.com.test.common.aspect;

import cn.com.test.common.CommonService;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;

import org.aspectj.lang.annotation.Before;
import org.springframework.aop.framework.AopContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class SimpleAspect {

	@Before(value = "execution(* cn.com.test.common.CommonService.doOption(..))")
	public void aspect(JoinPoint joinPoint) {
		System.out.println("进入切面--");
	}

	@Before(value = "execution(* cn.com.test.common.TestService.test1(..))")
	public void aspect1(JoinPoint joinPoint) {
		System.out.println("进入切面--");
	}
}
